package com.chen.project.white_jotter.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chen.project.white_jotter.pojo.AdminRoleMenu;

import java.util.List;

public interface AdminRoleMenuMapper extends BaseMapper<AdminRoleMenu> {
    int deleteByPrimaryKey(Integer id);

    int insert(AdminRoleMenu record);

    int insertSelective(AdminRoleMenu record);

    AdminRoleMenu selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(AdminRoleMenu record);

    int updateByPrimaryKey(AdminRoleMenu record);

    //////////////////////////////////////////////////////////////////////////////////////////////////////////
    // 通过角色id获取对应的菜单
    List<Integer> selectAllMenusIdByRolesId(Integer rolesId);
}